package com.distribute.domain.controller;

import com.distribute.domain.service.DistributedService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RequestMapping("/distribute")
@RestController
public class DistributedController {

    @Resource
    DistributedService distributedService;

    @RequestMapping("lock")
    public String testDistributeLock(@RequestParam String id) {
        return distributedService.testDistributeLock(id);
    }

}
